package com.unknownman.block.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * NFT链配置
 * </p>
 *
 * @author xhy
 * @since 2021-10-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TChainConfig对象", description="NFT链配置")
public class TChainConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "chain_config_id", type = IdType.AUTO)
    private Long chainConfigId;

    @ApiModelProperty(value = "rpc地址")
    private String rpcAddress;

    @ApiModelProperty(value = "部署链,部署在那条链上,如ETH,bsc测试链等")
    private String chainSymbol;

    @ApiModelProperty(value = "区块高度，初始化为部署的区块高度。")
    private Long blockNumber;

    @ApiModelProperty(value = "链的chain id")
    private Integer chainId;

    @ApiModelProperty(value = "链状态(10启用 20禁用)")
    private Integer chainStatus;

    @ApiModelProperty(value = "确认区块数")
    private Integer confirmBlock;

    private String createBy;

    private Date createDate;

    private String updateBy;

    private Date updateDate;


}
